package com.sciencep.pro.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sciencep.pro.common.domain.QueryRequest;
import com.sciencep.pro.common.domain.ResponseResult;
import com.sciencep.pro.core.domain.dto.branch.BranchTO;
import com.sciencep.pro.core.domain.dto.user.UserDetail;
import com.sciencep.pro.core.domain.entity.Branch;
import com.sciencep.pro.core.domain.entity.BranchContact;
import com.sciencep.pro.core.domain.vo.branch.BranchVO;

import java.util.List;

/**
 * @author Sciencep
 */
public interface IBranchContactService extends IService<BranchContact> {

    Page<BranchTO> getBranchList(QueryRequest queryRequest);

    ResponseResult<Branch> addBranch(BranchVO branchVO, UserDetail userDetail);

    ResponseResult<Branch> deleteBranch(String id, UserDetail userDetail);

    ResponseResult<Branch> updateBranch(BranchVO branchVO, UserDetail userDetail);

    List<BranchContact> getContactByProId(String proId,String branchId);

}
